@extends('layouts.app')

@section('content')
    <div class="xue-mall-courseCard-wrap">
        <div class="container">
            @foreach ($cate_list as $key=>$one_cate)
            <div class="xue-mall-courseCard-list zhuanti-course-box">
                <div class="am-nbfc am-margin-top-lg">
                    <strong class="am-fl am-text-xxxl xue-mall-courseList-name">{{ $one_cate->cate_name }}</strong>
                    <a href="/list/{{ $one_cate->cate_id }}" class="am-fr xue-mall-card-more">查看更多></a>
                </div>
                <div class="xue-block-grid live-course-box">
                    <ul class="am-avg-sm-3">
                        @foreach ($video_list[$key] as $one_video)
                            <li class="course-list-item">
                                <a href="/video/{{ $one_video['id'] }}">
                                <div class="free-card">
                                    <div class="free-card-top">
                                        <img src="https://{{ env('bucket').'.'.env('endpoint').'/'.$one_video['picture'] }}">
                                    </div>
                                    <div class="free-card-center">
                                        <p class="xue-card-title am-text-lg">
                                            <span class="course-title" title="">{{ $one_video['title'] }}</span>
                                        </p>
                                    </div>
                                    <div class="free-card-bottom">
                                        <span class="am-text-danger free-card-price-info">
                                            <strong class="xue-course-price">¥{{ $one_video['price'] }}</strong>
                                        </span>
                                    </div>
                                </div>
                                </a>
                            </li>
                        @endforeach
                    </ul>
                </div>
            </div>
            @endforeach
        </div>
    </div>
@endsection